import request from '@/utils/request'
// 获取组织架构
export const getDepartments = () => request.get('/company/department')
// 删除组织架构的部门
export const delDepartments = (id) => request.delete(`/company/department/${id}`)
// 添加组织架构的部门
export const addDepartments = (data) => request.post('/company/department', data)
// 获取某一个部门的详情
export const getDepartDetail = (id) => request.get(`/company/department/${id}`)
// 修改部门
export const updateDepartments = (data) => request.put(`/company/department/${data.id}`, data)
